package com.example.designmode.easyFactory;

import java.math.BigDecimal;
//减法
public class SubOperation extends OperationAbstract{

    @Override
    public double calculate(double number1, double number2) {
        BigDecimal bigDecimal = new BigDecimal(number1);
        return bigDecimal.subtract(new BigDecimal(number1)).doubleValue();
    }
}
